using System;
using System.Web;

namespace Skywalker.Web.Mvc.ViewComponents
{
    public interface IRenderer
    {
        IHtmlString RenderComponent<T>(T component, string viewName = null) where T : IViewComponent;
        IHtmlString RenderComponent<TBuilder>(Action<TBuilder> component, string viewName = null) where TBuilder : IBuilder, new();
    }
}